<!--{template header}-->
{if $op=='site'}
<div id="share{$oid}_menu">
<ul>
	<li><a class="sina" title="{$_lang['share_sina_weibo']}" target="_blank" name="sina"
	 onclick="share_to(this,{'key':'sina','url':document.location.href,'title':'{$share_title}','overview':'{$overview}'});" 
	 href="javascript:void(0);"><img src="resource/img/ico/sina_t.gif" alt=''></a></li>
	<li><a class="sina" title="{$_lang['share_ten_weibo']}" target="_blank" name="ten"
	 onclick="share_to(this,{'key':'qq','url':document.location.href,'title':'{$share_title}','overview':'{$overview}'});" 
	 href="javascript:void(0);"><img src="resource/img/ico/tencent_t.gif" alt=''></a></li>
	<li><a class="sina" title="{$_lang['share_wy_weibo']}" target="_blank" name="wy163"
	 onclick="share_to(this,{'key':'netease','url':document.location.href,'title':'{$share_title}','overview':'{$share_title}'});" 
	 href="javascript:void(0);"><img src="resource/img/ico/163_t.gif" alt=''></a></li>
	<li><a class="souh" title="{$_lang['share_sohu_weibo']}" target="_blank" name="sohu"
	 onclick="share_to(this,{'key':'sohu','url':document.location.href,
	 'title':'{$share_title}','title':'{$share_title}','overview''{$overview}'});" 
	 href="javascript:void(0);"><img src="resource/img/ico/sohu_t.gif" alt=''></a></li>
	 <li><a class="sina" title="{$_lang['share_to_fb']}" target="_blank"
	 onclick="share_to(this,{'key':'fb','url':document.location.href,'title':'{$share_title}','overview':'{$share_title}'});" 
	 href="javascript:void(0);"><img src="resource/img/ico/fb.jpg" alt=''></a></li>
</ul>
</div> 
{elseif $op=='center'}
<div class="">
 <div class="clearfix pad10">
	{if $tid}
		<div class="clearfix">
			<div class='clear'></div>
			<ul id='plat'>
				{loop $plats $k $v}
		 		<li style='display:inline;float:left;' class='grid_3 pad10'>
					<a href="javascript:void(0);" style="text-decoration:none;" title="{$apis[$k]['name']}"
					   onclick="share_to(this,{'key':'{$k}','url':'{$url}','title':'{$share_title}','overview':'{$share_title}'},1);">
			 			<img src="resource/img/ico/ico_48x48_{$k}.gif" alt="{$apis[$k]['name']}" />
			 		</a>
				</li>
		 		{/loop}
		 	</ul>
	</div>
	{else}
		<div class='t_c'>{$_lang['not_exist_task_data']}</div>
	{/if}
 </div>
</div>
{/if}
<script type="text/javascript">
	function share_to(o,c,t){
		var t = t?1:0;
	if(!o || !c)return false;
	 var linkArr = {
	 rr:"http://share.renren.com/share/buttonshare.do?link={0}&title={1}{2}",
	 ten:"http://v.t.qq.com/share/share.php?title={1}&url={0}&source={2}",
	 qq:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={0}&title={1}",
	 hi:"http://apps.hi.baidu.com/share/?url={0}&title={1}&content={2}",
	 kx:"http://www.kaixin001.com/repaste/share.php?rtitle={1}&rurl={0}&rcontent={2}",
	 db:"http://www.douban.com/recommend/?url={0}&title={1}&comment={2}",
	 bsh:"http://bai.sohu.com/appLogin.jsp?bru=/app/share/blank/add.do?link={0}&title={1}",
	 sina:"http://v.t.sina.com.cn/share/share.php?url={0}&title={1}&content={2}&appkey={$sina_app_id}",
	 sohu:"http://t.sohu.com/third/post.jsp?url={0}&title={1}&content={2}&appkey={$sohu_app_id}",
	 netease:"http://t.163.com/article/user/checkLogin.do?link={0}&source={1}&info={2}&title={1}",
	 fb:"http://www.facebook.com/sharer/sharer.php?u={0}&t={1}"
	 }
	 var _link = linkArr[c.key];
	 if (c.key=='sohu'){
	 	c.title = "{$utitle}";
	 }
	 c.url = c.url.replace('localhost','127.0.0.1');
	 var href = _link.replace(/\{0}/g,encodeURIComponent(c.url))
		 .replace(/\{1}/g,encodeURIComponent(c.title))
		 .replace(/\{2}/g,encodeURIComponent(c.overview));
	 o.href=href;
}
</script>
<!--{template footer}-->


